package com.weibo.dao;

import com.weibo.pojo.LikeTab;
import com.weibo.pojo.WeiboCollect;
import com.weibo.pojo.WeiboComm;
import com.weibo.pojo.WeiboTrans;

import java.util.List;

/**
 * @InterfaceName MainDao
 * @Author 天火
 * @Date 2019-03-05
 * @Version 1.0
 */
public interface MainDao {

    //查询该微博是否已经被点赞
    LikeTab findweiboLike(long wId, long uId);

    //对该微博点赞
    void likeWeibo(LikeTab like);

    //对该微博取消点赞
    void disLikeWeibo(LikeTab like);

    //该微博的点赞人数
    Long findWeiboLikeNumber(long wId);

    //保存转发记录
    void saveTrans(WeiboTrans trans);

    //微博转发次数
    Long findWeibotransNumber(long wId);

    //微博评论次数
    Long findCommNum(Long wId);

    //保存评论记录
    void saveWeiboComm(WeiboComm weiboComm);

    //评论查询
    List<WeiboComm> findWeiboComm(Long wId);

    //微博收藏
    void weiboCollect(WeiboCollect weiboCollect);
}
